# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='BoothImage',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('is_valid', models.BooleanField(default=True, verbose_name='\u6709\u6548\u6027')),
                ('is_deleted', models.BooleanField(default=False, verbose_name='\u662f\u5426\u88ab\u5220\u9664')),
                ('local_path', models.CharField(max_length=50, verbose_name='\u56fe\u7247\u8def\u5f84')),
                ('net_path', models.CharField(max_length=100, verbose_name='\u56fe\u7247\u7f51\u7edc\u8def\u5f84')),
                ('spider_booth_image_id', models.IntegerField(verbose_name='spider\u4e2dBoothImage\u7684id')),
            ],
            options={
                'db_table': 'booth_image',
            },
        ),
        migrations.CreateModel(
            name='Color',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('is_valid', models.BooleanField(default=True, verbose_name='\u6709\u6548\u6027')),
                ('is_deleted', models.BooleanField(default=False, verbose_name='\u662f\u5426\u88ab\u5220\u9664')),
                ('name', models.CharField(max_length=50, verbose_name='\u989c\u8272\u540d\u79f0')),
                ('spider_color_id', models.IntegerField(verbose_name='spider\u4e2dcolor\u7684id')),
            ],
            options={
                'db_table': 'color',
            },
        ),
        migrations.CreateModel(
            name='DetailImage',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('is_valid', models.BooleanField(default=True, verbose_name='\u6709\u6548\u6027')),
                ('is_deleted', models.BooleanField(default=False, verbose_name='\u662f\u5426\u88ab\u5220\u9664')),
                ('local_path', models.CharField(max_length=50, verbose_name='\u56fe\u7247\u8def\u5f84')),
                ('net_path', models.CharField(max_length=100, verbose_name='\u56fe\u7247\u7f51\u7edc\u8def\u5f84')),
                ('spider_detail_image_id', models.IntegerField(verbose_name='spider\u4e2dDetailImage\u7684id')),
            ],
            options={
                'db_table': 'detail_image',
            },
        ),
        migrations.CreateModel(
            name='Inventory',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('is_valid', models.BooleanField(default=True, verbose_name='\u6709\u6548\u6027')),
                ('is_deleted', models.BooleanField(default=False, verbose_name='\u662f\u5426\u88ab\u5220\u9664')),
                ('count', models.IntegerField(default=0, verbose_name='\u6bcf\u4e2asku\u7684\u5e93\u5b58\u6570\u91cf')),
                ('spider_inventory_id', models.IntegerField(verbose_name='spider\u4e2dinventory\u7684id')),
                ('color', models.ForeignKey(to='auto_sale.Color')),
            ],
            options={
                'db_table': 'inventory',
            },
        ),
        migrations.CreateModel(
            name='Product',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('is_valid', models.BooleanField(default=True, verbose_name='\u6709\u6548\u6027')),
                ('is_deleted', models.BooleanField(default=False, verbose_name='\u662f\u5426\u88ab\u5220\u9664')),
                ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='\u521b\u5efa\u65f6\u95f4')),
                ('modified_time', models.DateTimeField(auto_now=True, verbose_name='\u4fee\u6539\u65f6\u95f4')),
                ('name', models.CharField(max_length=50, verbose_name='\u4ea7\u54c1\u540d\u79f0')),
                ('url', models.CharField(max_length=100, verbose_name='\u4ea7\u54c1\u7f51\u7ad9')),
                ('price', models.FloatField(default=9999, verbose_name='\u5546\u54c1\u4ef7\u683c')),
                ('count', models.IntegerField(default=0, verbose_name='\u5546\u54c1\u603b\u5e93\u5b58')),
                ('image', models.CharField(max_length=100, verbose_name='\u5546\u54c1\u5728\u5217\u8868\u4e2d\u7684\u56fe\u7247')),
                ('is_on_sale', models.BooleanField(default=True, verbose_name='\u662f\u5426\u51fa\u552e')),
                ('spider_product_id', models.IntegerField(verbose_name='\u5546\u54c1\u5bf9\u5e94\u7684spider\u4e2dproduct\u7684id')),
            ],
            options={
                'db_table': 'product',
            },
        ),
        migrations.CreateModel(
            name='Shop',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('is_valid', models.BooleanField(default=True, verbose_name='\u6709\u6548\u6027')),
                ('is_deleted', models.BooleanField(default=False, verbose_name='\u662f\u5426\u88ab\u5220\u9664')),
                ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='\u521b\u5efa\u65f6\u95f4')),
                ('modified_time', models.DateTimeField(auto_now=True, verbose_name='\u4fee\u6539\u65f6\u95f4')),
                ('name', models.CharField(max_length=50, verbose_name='\u5546\u5e97\u540d\u79f0')),
                ('url', models.CharField(max_length=100, verbose_name='\u5546\u5e97\u7f51\u5740')),
                ('spider_shop_id', models.IntegerField(verbose_name='spider\u4e2dshop\u7684id')),
            ],
            options={
                'db_table': 'shop',
            },
        ),
        migrations.CreateModel(
            name='Size',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('is_valid', models.BooleanField(default=True, verbose_name='\u6709\u6548\u6027')),
                ('is_deleted', models.BooleanField(default=False, verbose_name='\u662f\u5426\u88ab\u5220\u9664')),
                ('name', models.CharField(max_length=50, verbose_name='\u5c3a\u5bf8\u540d\u79f0')),
                ('spider_size_id', models.IntegerField(verbose_name='spider\u4e2dsize\u7684id')),
                ('product', models.ForeignKey(to='auto_sale.Product')),
            ],
            options={
                'db_table': 'size',
            },
        ),
        migrations.AddField(
            model_name='product',
            name='shop',
            field=models.ForeignKey(to='auto_sale.Shop'),
        ),
        migrations.AddField(
            model_name='inventory',
            name='product',
            field=models.ForeignKey(to='auto_sale.Product'),
        ),
        migrations.AddField(
            model_name='inventory',
            name='size',
            field=models.ForeignKey(to='auto_sale.Size'),
        ),
        migrations.AddField(
            model_name='detailimage',
            name='product',
            field=models.ForeignKey(to='auto_sale.Product'),
        ),
        migrations.AddField(
            model_name='color',
            name='product',
            field=models.ForeignKey(to='auto_sale.Product'),
        ),
        migrations.AddField(
            model_name='boothimage',
            name='product',
            field=models.ForeignKey(to='auto_sale.Product'),
        ),
    ]
